
package io.seata.sqlparser.druid;

import io.seata.common.loader.LoadLevel;
import io.seata.sqlparser.SQLParsingException;
import io.seata.sqlparser.SQLRecognizer;
import io.seata.sqlparser.SQLRecognizerFactory;
import io.seata.sqlparser.SqlParserType;

import java.lang.reflect.Constructor;
import java.util.List;

/**
 * @author stone
 */
@LoadLevel(name = SqlParserType.SQL_PARSER_TYPE_DRUID,order = 1)
public class CustomDruidDelegatingSQLRecognizerFactory implements SQLRecognizerFactory {
    private final SQLRecognizerFactory recognizerFactoryImpl = new DruidSQLRecognizerFactoryImpl();

    public CustomDruidDelegatingSQLRecognizerFactory() {
    }


    @Override
    public List<SQLRecognizer> create(String sql, String dbType) {
        return recognizerFactoryImpl.create(sql, dbType);
    }
}
